<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
$(function() {
	$('#moduls_fun_editDetContentDetContent_posId').combobox({
		onSelect : function(record) {
			changeDetContentPosType(record.posType);
		}
	});
});

function changeDetContentPosType(posType) {
	if (posType === 1) {
		//$('#moduls_fun_editDetContentDetContent_detproOption').validatebox({required:false});
		$('#moduls_fun_editDetContent_projectName').attr("disabled", "disabled");
		$('#moduls_fun_editDetContentDetContent_detproOption').attr("disabled", "disabled");
		$('#moduls_fun_editDetContent_editForm input[name=posType]').val(posType);
	} else {
		//$('#moduls_fun_editDetContentDetContent_detproOption').validatebox({required:true});
		$('#moduls_fun_editDetContentDetContent_projectName').removeAttr("disabled");
		$('#moduls_fun_editDetContentDetContent_detproOption').removeAttr("disabled");
		$('#moduls_fun_editDetContentDetContent_addForm input[name=posType]').val(posType);
	}
}
</script>
<div align="center">
	<br />
	<form id="moduls_fun_editDetContent_editForm" method="post">
	<input name="contentId" hidden="true"/>
	<input name="posType" hidden="true" style="display: none;"/>
		<table class="tableForm">
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">所属岗位</th>
				<td><input id="moduls_fun_editDetContentDetContent_posId" name="posId" class="easyui-combobox" style="width: 300px;" data-options="valueField:'posId',textField:'posName',required:true,url:'${pageContext.request.contextPath}/positionAction!getPositionComboBoxData.action'" /></td>
			</tr>
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">测评项目</th>
				<td><input id="moduls_fun_editDetContent_projectName" name="projectName" style="width: 300px;" class="easyui-validatebox" data-options="required:false" /></td>
			</tr>
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">测评内容</th>
				<td><input id="" name="detContent" style="width: 300px;" class="easyui-validatebox" data-options="required:true" /></td>
			</tr>
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">测评选项</th>
				<td><font style="font-size: 12px; font-weight: normal;">例如：优:4,良:3,中:2,差:1</font><br /> <input 
				name="detproOption" id="moduls_fun_editDetContentDetContent_detproOption" style="width: 300px;" class="easyui-validatebox" data-options="required:false" /></td>
			</tr>
		</table>
	</form>
</div>